Release 10.1A: OpenEdge Development:
Debugging and Troubleshooting
4GLTrace logging
Specifying the 4GLTrace log entry type turns on logging for the execution of internal procedures, user-defined functions, persistent triggers, and named events (generated by the
RUN,FUNCTION,PUBLISH, orSUBSCRIBEstatements, respectively). It also logs the instantiation of classes (generated by theNEWstatement), the invocation of super classes and methods (generated by theMETHODinvocation syntax), and the deletion of classes (generated by theDELETE OBJECTstatement). 4GL Trace logging is available on all OpenEdge clients including GUI clients, character clients, WebSpeed agents, and AppServer agents. Log entries generated for this type contain the tag4GLTrace.4GL Trace logging logs an entry message when execution of a an internal procedure, user-defined function, persistent user-interface trigger, named events, classes, methods,
PUBLISHstatement, andSUBSCRIBEstatement begins. Information is logged at Level 2 (Basic) and higher. 4GL Trace logging logs a to indicate the application returned. Return messages are logged at Level 3 (Verbose) and higher.The general format for 4GLTrace logging entry messages is:
typeThe following table lists the entry type and description:
routine-nameProcedure or function name being executed. For classes, this is the name of the class being instantiated or destroyed, or the name of the invoked method.
PERS TRIGIndicates that the procedure runs as a result of a persistent trigger. In this case, this is the only piece of information in the log entry after the
routine-name.inroutine-nameFor procedures, logs the calling
routine-name. For example,RUNxxinyystatement, logsyyas theroutine-name. For functions and methods, logs the function or method when the function or method is not located in the caller procedure or class.PERSISTIndicates the
RUNstatement has thePERSISTENTclause.input-paramList of input and input-output parameters, each separated by a single space.
callerIndicates where the call to the statement or function is:
Mainblock,SYSTEM-TRIGGER, or the name of an internal procedure, function or method.sourceIndicates the name of the procedure or class which contains the caller.
@line-numberIndicates the line number where the procedure
routine-nameis executed by the caller routine. When implicitly invoking the constructor of the super-class, this is the stringIMPLICIT.For example:
The following example shows 4GLTrace logging for classes:
The general format for 4GLTrace logging return message is:
routine-nameName of internal procedure, function, method, user-interface trigger,
PUBLISHstatement, orMain Block.output-paramList of
OUTPUT,INPUT-OUTPUT, andRETURNparameters.program-nameName of program containing called procedure.
For example:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |